﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/bootstrap")
    @Styles.Render("~/Content/DataTables")
    @Scripts.Render("~/bundles/modernizr")
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="~/Scripts/html5shiv-printshiv.min.js"></script>
    <script src="~/Scripts/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <div class="container body-content">
        @RenderBody()
        <hr />
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/DataTables")
    <script type="text/javascript">
        //dataTable 默认配置
        $.extend(true, $.fn.dataTable.defaults, {
            "serverSide": true, //服务端处理
            "ordering": false,  //排序
            "processing": true, //查询中
            "bAutoWidth": true, //自动宽度
            "paging": true,  //分页
            "pagingType": "full_numbers", //分页样式
            "searching": false, //查询条件
            "bFilter": false,  //过滤条件
            "info": true,  //信息
            //"dom": '<"top">rt<"bottom"lip><"clear">',  //页面布局
            //"<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
            "dom": "<'row-fluid'r>t<'row-fluid'<'col-xs-2'l><'col-xs-2'i><'col-xs-8'p>>",//定义DataTable布局的一个强大属性
            "scrollX": true,//横向滚动
            'bStateSave': true,//保存客户端状态
            //"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],  //设置分页可选项
            "language": {
                "loadingRecords": "加载中...",
                "lengthMenu": "每页显示 _MENU_ 条",
                "emptyTable": "抱歉， 没有找到符合条件的数据",
                "zeroRecords": "抱歉， 没有找到符合条件的数据",
                "info": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
                "paginate": {
                    "first": "首页",
                    "last": "尾页",
                    "next": "下一页",
                    "previous": "上一页"
                },
                "infoFiltered": "",
                "infoEmpty": "无结果"
            },
        });
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>